import Vue from "vue";
import Vuex from "vuex";

Vue.use(Vuex);

export default new Vuex.Store({
  state: {
    logo: '',
    MerchantID: '',
  },
  mutations: {
    // 头部，logo
    logo(state, data) {
      state.logo = data;
    },
    // 店家id，确认是哪个店家，然后路由传值跳到相应的主页
    MerchantID(state, data) {
      state.MerchantID = data;
    }
  },
  actions: {

  },
  modules: {

  }
});
